Skip to content

sched/semaphore: tick wait 0 timeout should be safe in interrupt context#15377

Merged
xiaoxiang781216 merged 2 commits intoapache:masterfrom
anchao:24122901
Dec 30, 2024
Merged

sched/semaphore: tick wait 0 timeout should be safe in interrupt context#15377
xiaoxiang781216 merged 2 commits intoapache:masterfrom
anchao:24122901

Conversation

@anchao
Copy link
Contributor

@anchao anchao commented Dec 29, 2024

Summary

sched/semaphore: tick wait 0 timeout should be safe in interrupt context

  1. remove up_interrupt_context() check, which should be safe in interrupt context
  2. remove sem instance check will be handle in nxsem_trywait()

Signed-off-by: chao an [email protected]

Impact

N/A

Testing

nxsem_tickwait(&sem, 0) in isr context

@github-actions github-actions bot added Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Dec 29, 2024
1. remove up_interrupt_context() check, which should be safe in interrupt context
2. remove sem instance check will be handle in nxsem_trywait()

Signed-off-by: chao an <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants